package cn.com.miao.lynx.plugin.job.quartz.wrapper.support;

import cn.com.miao.lynx.plugin.job.quartz.wrapper.JobParamWrapper;
import cn.com.miao.lynx.plugin.job.quartz.wrapper.JobWrapper;
import lombok.Builder;
import org.springframework.scheduling.quartz.QuartzJobBean;

import java.util.Date;

/**
 * OnceJobWrapper
 *
 * @title: OnceJobWrapper
 * @description:
 * @author: dengmiao
 * @create: 2020-01-14 15:12
 **/
public class OnceJobWrapper extends JobWrapper {

    /**
     * 构造函数初始化父类的相关字段
     * @param jobKey      任务key
     * @param jobClass    任务执行类
     * @param param       参数集合
     * @param startAtTime 开始时间
     */
    @Builder(builderMethodName = "Context", buildMethodName = "wrapper")
    public OnceJobWrapper(String jobKey, Class<? extends QuartzJobBean> jobClass, Date startAtTime, JobParamWrapper param) {
        super(jobKey, jobClass, startAtTime, param);
    }
}
